// 2010-03-03 - M. Caputo

#ifndef CVERTEX_H
#define CVERTEX_H

#include <QColor>

class CVertex
{

public:
	CVertex();
	CVertex(float x, float y, float z);
	CVertex(float x, float y, float z, const QColor & color);

	float* vertex();
	float x();
	float y();
	float z();

	bool hasColor();
	const QColor & color();

private:
	QColor objectColor;
	bool colored;
	float vertexData[3];

};

#endif
